Vector errors solved

(This uses all QVectors, which are included in structures.h)