Fix EDoc errors

Tag @doc can't be added to a definition of a type and the @spec is probably a left-over because it no longer describes the function that is beneath it. Without those fixes EDoc throws errors when trying to generate documentation from the sources.