Added additional error messages. Added init module method