- define variables, `ugly` initialisation -

The maximum integer is 65535 32767 as int's and int expressions are by default signed 16 bit.

Some minor corrections.