fixed up some things
fixed some pointer manipulations. UNTESTED
Merge branch 'master' of github.com:dmb2168/PLT