Feature/edoc fixes

`make docs` now completes cleanly:

* Preprocess source for edoc
* Use `@type` instead of `@doc` for type documentation