[Hanieh] Added comments. Refactor tractor.