Documentation for vector added and fixed a few bugs