Removed some debug output and performed some code formatting.