Fixed handling one entry at a time, added JUnit test, added pattern files, updated pom.xml, added some mappings