Switched from getline to fgets for line input, since it's standard.
Merge branch 'master' of https://github.com/richardjs/Pilgrim