Updated vec and math classes