Added demosaic and color_pipeline methods, added comments