Updated README, added loop snippet