final revision
new fixes
changing paradigm from tbp to mbp(message based prog.)