Added bridge.c file from mingrody, fixed rand() seeding and working on dealock issue.