Adding unit tested error printer and enumeration system in errors.h/errors.c