adjusted for testing on the server
deleted a comment
added the methods for the api communication