Add some comments to better explain what's going on, cleaned up some
unnecessary code, should probably eliminate io_server but I'll leave it
for now.