Fix bug with summarize_coords

This problem would cause a bug with summarize_coords, should now be
fixed.
Add checks for input directories

This new checks allow the script interface to check whether it should
ignore or not a file that's passed in.