addresses #1247
parse_coords is now more flexible on input type
wasn't checking for an empty line correctly
Merge pull request #1263 from wasade/issue1247

addresses #1247