Added function to parse category/categories from XML files, replaced block comments with docstrings