played with github api

also added a couple php read bug fixes