Initial upload working code

works, but with issues:
- no journaling
- parsing routines could be (much) better
- no MIDI optimization