updated README, slight refactor of require code