Adding exec remote API documentation

Includes a minor code cleanup and addition of a TODO.

Ping @cpuguy83