Updated claudia.R and added some function documentation