Added PMF writer and performed major refactoring
Merge branch 'master' of https://github.com/SiLeBAT/Other.git