added printouts, postconstruct and predestroy
added loging w log4j