Add a <work-state> type, and associated constants.
Add some doc comments.
Update docs.
Merge pull request #2 from cgay/dev

Minor mods to concurrency