A high level simulator for Gunk

Warning: this document is in revision to incorporate the new thread features. Some of the old material requires minor changes.