removes unnecessary imports in cardinal.py
adds config.json to gitignore
Merge branch 'bugfix/15'