Bugfix import of yaml. Add CLI example to docstring. Return the value.