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
Merge pull request #31 from Np2x/master

fixed #29, #24 & #23