Error constants added

Fixes #23

Standard libgit2 error constants attached to Error object.

An outdated example fixed.