Updated gitignore
Updated tests

Moved config
Added a selftest
Added editorconfig