Code cleanup. First set of doc changes