---created new file wk thm functions. Changed file names to be more
compact. Cleaned up complex allocation.
---added file where field class will go