Added vector tests, imported DataCube from Mews, improved template code.