Many new classes and reorganisation of files. Added in tests and code to create Min's example distributions.