Add skeleton for main loop

Still no much to see
Merge branch 'master' of https://github.com/oz123/bitshape