Added comments, and futzed around with translating pixels to blocks.