bunch of changes

changed how sentences are retrieved. tagging function now returns a
status indicating to the client to retrieve more sentences if needed