added difference function
added flot. Trying to get it to work.