02/10: Processing CSs. Fixed mistake in TR code.
Line search algorithm found to work really well for tracking the
states in R. Wrote some scripts to tidy up data, and make graphs etc.