Preparing various lua namespaces and updating documentation