added loop macro
added loop to readme