Fix setting type of function call
Make run.py not work if errors exist, Add Melanie's file