added some inline docs
added some inline docs