cleaned up the code and added in the endpoints
fixed the JSON to include shortlink id and id