Added docstrings, removed some unecessary attributes, moved config to dict