Added and adjustedlots of doc comments.