made some small tweaks to some of the vectorized functions to return a numpy array of the results for easier slicing
Merge pull request #50 from Apollo117/more_vectorized_functions

made some small tweaks to some of the vectorized functions