implemented method bgrewriteaof and tests
implemented method bgsafe and tests
added method to readme