implementing pulls api

Fixes #13