Added a StreamGobbler.java, cleaned up code.