First functional prototype.  Needs cleaning and expansion of markup language.