* fix not closing comment box after successful comment
* github returns status 201 and the library is only expecting 200 as success, changed it to treat anything between 199 and 300 as success
* formatting
* handle error case
* refactor commit message retrieval, reduce lines of code and reduce function return points to one