Bit of a tidy-up.

* Adds copyright/license header to the tops of files.
* Removes redundant files (esp. boilerplate images & js files from 'test'
project).
* Adds some doc-comments (though far from exhaustive).