cleaned code and latex…need to work on problem 2 now

Added some error codes so we are on target for the number of clean
records now.