Fixed  error. Made target bed file input an option.
Fixed options reference bug