Completion of the vectorize function and creation of initial roxygen documentation