add optional title kwarg to activities_to_atom()