PPOS update

Fixed the user space test program. Cleaned up the code.