adding new demo page
documentation, code cleanup
formatting