fixed fencepost bug in timer
added debugging functions to the ppu emulator