Added support for negative and zero integers.
Fixed support for non positive integers and also fixed some typos.