add comments, test rest api, test gui