Range check object/gadget boxes better
Change the validation to forbid over-long numbers being entered in the Class and Type boxes. Add a range check in code for classes > 24b. Minor: Remove a duplicate array definition. Change UK resources spelling of 'recognize'.