add build instructions and pom.xml for maven