added G_TSR input for acceleration due to gradient
insert debug messages
updated CMakeLists.txt