Added rules file, partially completed