Fixed all values reading in wrong from uPPT

turns out I don't know how malloc works. everything implemented is now
working as expected!