Bugfix module loader and added module getter function