Added project file into .gitignore
Changed the includes a bit
Made error_value local instead of global
included stdint and changed few int types
Changed the function return type and added some documentation.
Corrected the includes a bit
Added more files to ignore
Added more error flags