added verbose switch to print statements.