Bugfixing + basic documentation