Move character_class code to it's own file, document some of the
functions.