wrote test for delete mode, added to_s, made level cap optional