Removing unneeded @doc lines and adding code to make this module work with gen_ server