modified VERBOSE to be a keyword to the opts argument, and other changes