Added color bin array, fix compile errors