Added logging and fixed some messages
Changed logging tool to commons-logging