add license
remove nasty System.out
use correct scopes and properties
add log4j config
improve pom