Work on docs.

This involves a re-write of the main documentation, with some exmaples and stuff.
Fix some unused import warnings