Fixed a mistake in vectors.py and added documentation.