corrected some checkstyle errors and added comments. Updates #16