refactoring code; adding midi controls
more refactoring and adding support for updates