[dev] Fixing return values in vector.h. Updating docs.