fixed an error in vectorizer, added tests for vectorized output
Merge pull request #1 from AWinterman/tests

fixed an error in vectorizer, added tests for vectorized output