Added lots of documentation.

Working on the example file and organizing all the code and preparing
for a second release using the new restructure.
The third release will include the GUI.