added depth option, added tests, updated readme