Passing out limb crossings
Locking and local/global variables
Merge pull request #29 from ayshih/cdr

Demo for CDR!
changes
merge from upstream