See the docstring of carton.py for documentation
