Improvements to code, functionality, demo page

Added looseconfig object to allow default behaviour for loosetime
Improved demo.htm page to show more examples