Add edoc annotations to clearly show public API
Make typespecs for all records, export them from saml:

This makes edocs much more readable