cleanup documentation
remove old unused code