Simple Error Checking
Simple error checking; Convert module to class
convert all modules to classes