GitHub button

* fixed some bugs
* added a github button