Update docs and make sure init function is global