added license, pom for maven builds, refactored source packages