Updating dome of the docs, renamed more functions, tsp changes again.