added some comments
added donate_priority
lock attempt
fixed typo
fixed typo2
merged with alex-test