client refactoring + some improvements necessary on the server and UIMA pipeline