Spacing cleanup; clean up getopt setup significantly
Fix Getopt guard and flag initialization
Fix Getopt guard
Simplify cURL WRITEFUNCTION; clarify TODO