implemented /reset and /flush
updated documentation, fixed retrun values on /flush and /reset