fixed issue #29
removed defines from PNLineChart.h (not typesafe)
fixed issue #24
cleaned up code, removed some not necessary code and fixed issue #23