making webserver to work, require function changed into openBid, introduced closeBid as well