Finished refactoring PPU, adding Javadoc.