Added the last bits of code documentation.
Fixed a bug with the y-range.
Put in a test for an active bar.
Some more test files.
Made a start on user documentation.