Added a lot to documentation and edit to TP