Adding grading and checks for both file and url. Incomplete.