Added basic classes allowing a word and its metadata to be defined.