Cleaned up

Fixed many bugs, code now works 100% standalone. Still won't build due
to same error, and crashes is getData(pData) is called.
Disregard this

lots of testing code commented out