made term a class from which die, number, etc inherit
removed old methods, several fixed errors