Updated PixelReference

Added comments
Added PixelReference tests