Using spike statistics as a better starting point. Added qwt library to makefile.