reformatted sources, improved comments
added licence to pom.xml