added --fail to curl where useful, comment, closes #47