fixed flatten, added search, added recursive, fixed index, added immutable statements, removed delegatr stub, added tests, updated docs