added some documentation, and support for time-varying masses. discovered a big bug that presents in the roller coaster problem