fix(lib): calculate commits based on email

Fixes #2