Adds board class
Adds error class
Fixes various bugs