added remaining api routes for tags
beautified files
added getTags function