Working flatten and unflatten functions
Merge branch 'master' of https://github.com/Perlence/musediff