Improved logging, added documentation to docs folder