tidy up codes, add some comments
tidy up codes
merge 2 processes into 1 by using WEBrick::SimpleServer