Rewrite

Complete Rewrite of all code with a ton of documentation and notes
including search indexing for each file. Everything is working just as
it was previously but further development will be much easier from here
on out.