Imporved comments and removed vestigial lines of code.