Added unit tests for all the methods in the Job and FileAttachment class. Cleaned up bugs/comments/warnings from checkstyle and other tools.