Consistently pass run_namespace as an argument wherever level is used
Implement the final hierarchy of namespace resolution and adapt the documentation accordingly. Closes #198