Completed documentation of Thalamus globals and functions