add function to set all global variables
update README