added getChromaUFB.m and fixed some bugs