Merge pull request #126 from wick-ed/master

reviewed diff and tested locally with 0.6.0
implemented abstract rewrites node class