added vector math and updated displaying of vector