Error-checking

Deleted some duplicates and fixed capitalization