javadoc writing
worked on logging
javadoc writing
javadoc writing
added javadoc 
fixed minor stream issues