Added error codes.
Bumped version to 0.3.12