Added RWS.
Use record rather than 3-tuple.
Merge pull request #5 from joneshf/master

Added RWS.