Midiacenter implemented, some refactoring