Fixed indentions and tentatively finished ErrorCheck class. Removed redudancies