cleaned code and comments in rio.c
cleaned code and comments in proxy.c