added pom.xml and minor bug fixes