fixed some of the typing errors.
Added g1uint operations for ulint