Added a globals header, made wrappers for the calling functions, and started commenting