Add Converter function

Delete test at end of states files
Add idea to gitignore