^_^
removing old unused functions
better handling of some errors
getDeviceWinSize() returns the correct win size