Fixed some bugs.
Merge branch 'master' of https://github.com/fruktstav/iMat
Added a settingsPanel.