addressing comments, bugs, major reorganization
update test cases; add some sample files to upload

major reorganization, editorial, bug-fixing, make match HTML5 better