Updated code to match PSR-2 Coding style
Added editorconfig file