Added timeout for client
You can now specify refresh rate by cmd-line flags
Fixed something