added R queries, initial commit