Update File Connections

Update files to pass JSON objects as communication. Also catches more
errors.