Demo, code doc, fixes

Added demo page
Added code documentation
Fixed bug in paste handler