Small docstring clarifications.
Test related improvements and bugfixes.
Improved use of named constants in up.py.