Add @doc clauses, fix indentation