Editing mrt_functions.py

Finished adding comments, now organizing