Removed debugging print statements
Documentation changes as well as a new function for calculating loop stats
Formatting changes