Updated Readme.md and updated out_rulefunction