Added gitignore files
Fixed offset not being saved.
Added error reporting to main.cpp, added test for error reporting