added places to call outputAccessToFile so that we don't need to quit browser each time to have it write to folder. DIV mediated temporarily for debugging purposes.