use for loop and improved error message
0.2.0
Update readme
Automatically rewritten for npm.