Text this: General Index and Its Application in MD Simulations