De-anonymize response struct
Move main() + support funcs into its own file for clarity.