added custom vector support to 2D code
typo in docstring