fixed bug preventing plotting of negative values
fixed memory leak
version increment