Tidying up for first release

* Add some extra types/functions to export list
* Add tests for CompileErrors
* Add docs