added a Tab-class, and minor changes to Main
Merge branch 'master' of https://github.com/NeonNeon/iMat