Exam creation update!

Fixed a lot of broken code (still a long road to go) and added a
functional form that builds exam in text-file output.