Replaced warn.o with codes.o, added error definitions
Errors rewritten to subclass from notification