added header files
added reference calculation
cleaned up
added mean median max min CPU calculation
added timer
clean up