Few more changes

Some of the values that needed to be int were strings, I did not see it in my application because it gets pushed into a database and then pulled by php which has very weak types.