Added error handling. Errors are now saved to a file
Completed 2 factor authentication engine
Added json unit tests