added type-information and modified pom.xml