Added docstrings where applicable and removed unnecessary templatetag argument