tests + minor refactor
make installable
don't use github api anymore