Fix pom file. Enhance sample code.