Added pom.xml, changed license and added test case for snipets shown in
readme.