minor cleanup
added some javadocs
improving helloWorld example