Added .editorconfig and fixed indentation
Fixed a lot of typos and added more docs with code cleaning