Fixed typo - else -> elif
Fixed some typos related to _.each loops