Declared commends for most of the variables and changed all equations to coop with crmath package.