Fix math -> law screen; add .idea files to gitignore