Partisynth::init() now works, cleaned up and rearranged some other functions for clarity.