Changed loop structure in function, 'Wait_For_Event'
Fixing wchar and XDrawImageString16 incompatibilty
Added early endianness conversion code