Creation of Ecxeption class for Modules.

Minor debug done