Module management, bugfixes, command handling