fixed bugs with --add-chr and other little things.