add scheduler lock functions, add docs
added docs, fixed bug in proc dir
docs