fix bug, change default num-in-block, add missing files