some codenarcing
replaced println by log entries. some cleanup