Restructured to maven. Added log4j.