Cleaned up indentation of debug statements to make the code easier to read. Also removed one unused function.