fixed overflow bug... time_t's are unsigned longs, not uints. also cleaned up the network code to allow for better polling