+ added rotate left and right + toggle mask to toggle multiple bits in one write. + refactor (after CPPcheck)