updating docs, change in sample and java required for build