Improving documentation and removing old code.