Adding syncmodel which handles all of syncronization with gui process
More elaboration to classes and added basic syncronization by barrier to master