- added option to lock controls
- flush midi input on start
- cleaned up code