fixed bug with history not drawing correctly
updated drawing code so it redraws less often

Drawing now happens at most once per second
added history download button
added history upload button