Updates to xml comments and removal of unused code.