Valid keywords

Other keywords, such as WFN, REFERENCE, and DERTYPE are also checked in certain modes. It is done primarily to double-check users intentions and to detect inconsistencies in the program's input.