Change update function signature

Changed parameter type to int. Need to figure out a good way to covert
strings to int
Add update int function.