added initial checks and grader files
undefined error and updated checks
finished with a workaround