javadoc added
Some comments added.