Handling of midi is correct now

Removed also some debug printings...