added patch support
adding testcases for patch support
adding testcases for patch support
Merge pull request #47 from mlaug/master

Added patch support