Fixed minor compile errors. Now runs successfully.