Added iml files to gitignore
Added missing exception declarations and cleaned up imports