more documentation and logging
config log4j with xml