Cleanup. commenting, reorganizing pieces of code.

UDP transport code complete. Now onto testing.