Code for analyzing data from molecular dynamics simulations