Chomp trailing whitespace on data/track src lines

Also, some small comments.
Fix "shave" subroutine (whitespace removal)

Trailing whitespace was breaking the attach_geoids curation web page.