Documentation for alp.R