Renewed codebase for RcppArmadillo. Implemented Kokots' model.