add option to output chromosome sizes file
fix coordinate bug in last change