color parameter now handled properly. learning works.
correction is still broken because it demosaics, etc.
compiles, split correct into gray_correct and color_correct.
not tested.