updated docs and cleaned up some funcs