Minor improvements.
Made calls to updateDisplay explicitly necessary.
Refactored pixelbuffer names to be more meaningful.
Improved comments and documentation.