add yard doc and allow for -A and -B at same time