Added div function, changed plus to add

Also modified sub just a bit to be simpler.