Refactor code to use new API
Refactor code to use new API

 - Quite little needed to be done to make all this work with
   the new NG record. Since the types have been changed in
   the backend code, little needs to be done to the docs read
   in from outside.

 - Removed various other formatting functions from the end of the
   file to better modularise the code.

 - Added new import statement to reflect the deletion.

 - The code is now back to the state when the type diversion started.
   Whee!. Now, though, there is a better type system. How exciting!

R-Morgan/NGramCrackers