Added .idea to gitignore
Added save method to configuration class.

Also fixes a relative import