functions changed to set_global and get_global. readme.