Change number of characters and numbers to constants
Change instantiation method for two Exception classes; refactor generate_name to eliminate if statement