Oops, unnecessary debugging I forgot to remove
Refactored to reduce redundancy, changed namespace, added update vertex endpoint