Fixed types to avoid errors on 64bit architectures.
Grammar fixes