changed srem/sdiv; minor stuff
more fixes