Use constants module.
0.1.9
Tidy constructor.
Improve error handling.