Removed multiple endpoints
added api key insertion;
added a comment