Feature/edoc fixes

`make docs` now completes cleanly:

* Preprocess source for edoc
* Use `@type` instead of `@doc` for type documentation
Wow, this is the first time I've seen this work. Kudos.