add wait slots for calculation
mostly working conversion
some comments
finetune sync
Merge branch 'ritrack' of https://github.com/szte-wsn/tinyos-main into ritrack