Added Writer and WriterTest, commenting out the ResultSet stuff for now.
Cleaned up a few minor bugs/best practice issues found by FindBugs.