changed the way how the module is initialized to the standard way

Changed the way how the module is initialized to the standard way. This is a fix for issue #2.