Modified slightly to stick more with conventions

Constructed the entire data object in one go. Also renamed the variable to
data, which is essentially closer to what it means. The entire HTTP package is
also a message (or "msg" ). However, these are minor details.