applying changes to work with the benchmark framework
changing doStocklevel to return 0 if no results are found instead of throwing a TypeError (and debug)