Clean up of the fvm.py file and added documentation of the changes.