Added error checking to mcv.py.
Added patient query methods to mcv.py.