Update example, add error check in morris.py