added mark's files
changes

new function correlation_integral
changes to trajectory (mostly to make it easier to play around with it)