Update blackwhite program, various fixes