Initial commit of .R, readme and cookbook