changed DataTypes to uintX_t, uintXX_t for reliable size. Fixed RecvLoop.

changed DataTypes to uint8_t, uint16_t, uint32_t and uint64_t wherever
necessary unsigned long, int , short are deprecated now for reliable
size. Fixed RecvLoop.
fixed style and minor aesthetic patches.
removed new lines.
Merge pull request #2 from ludkiller/master

changed DataTypes to uintX_t, uintXX_t for reliable size. Fixed RecvLoop...