TODO: * write docstrings * remove unneccasary comments * translate doctrings written in Swedish to English * change functions into classes