Fixed makefile. Added code to print rtt plot.