Added QVectorND as library. Lots of other changes.

Sorry for the messy commit, self.