comb5015 var 0.2 dspic part

Add RMS part and add more commentings. (Add a back up plan code with
dspic30f4012)