Editing mrt_functions.py

Commenting and cleaning