Bugfixes, lots of code fixes and refactoring, start of study related functionality.
Documentation of changes to dataformat.