Cleaned up comments, refactored QueryRows and improved code clarity.