first commit pl codes and R analysis codes