Fixed #9, implemented REQ and REP