Update to clean rule in makefile.
Completed demo programs and respective documentation.
Completed code refactoring and documentation.