Update socket code, added example message; ec2 connection testing.