added threads option to spider. implemented stop function