1st draft of the manual, minor code changes.