Added .idea folder to gitignore
Added CI phpStorm file to enable autocomplete in phpstorm
Tidying up some code