Add some basic error handling.
Download the key file.
Read in first int from key file.
Add some missing semicolons.
Parse the key file header.