aligned uglobal/iglobal to 4 bytes boundary
removed some unused/commented code