added rules, and stub files, and stub test, with comments