Cleaning up some code -- made print statements more intelligible