Adds error check for missing class (if class file is found, but class is named incorrectly).