javadoc
added sample to readme