Rewrote demo application
Merge pull request #7 from agabani/Documentation-and-Refactoring

Rewrote demo application