Further small edits and clarifications
Changed print to print() and xrange to range for compatibilty with Python 3