making it more simple and adding $term as a var
updating docs to standards