refactored addTag function to separate validation
added autocomplete functionality and fake endpoint in test folder, and documentation