updated README, and got rid of everything from global scope