Fixed some problems and added an example program
changes like suggested
Replaced PGLfloat and PGLdouble by ptr ..
Merge pull request #6 from trustable-code/master

Fixed some problems and added an example program