made some small tweaks to some of the vectorized functions 

made some small tweaks to some of the vectorized functions to return a numpy array of the results for easier slicing