added comments to code and now treats blocktypes < 1 as transparent.