Fixed mouse events not working in all file types + handled new commands

This should fix issue #1