disabled debug output, fixed possible retain count problem, done some formatting