removing unused code.
Minor tweaks.
Documenting changes