Fixed program operations, taking into account errors thrown
Added config to gitignore