Added license, extended .each function

.each now returns the index in the call back.
Updated readme

Added license to readme