Added documentation in various places. Various deletions.