Added new error flag messages to the function and changed it's prototype
Added custom 8bit bool type and added include to errors.h
Added necessary library