implemented set and reset statements
Merge pull request #844 from crate/m/set_impl

implemented set and reset statements