deadlock works, all examples work in rust .10
cleaned up code, tested it