More documentation; Add macros for MIDI input and output