comment and tsref documentation cleanup