ans: Cleanup rans writing routines * Replace struct rans_sym parameter with values. It only had two entries. * Document functions. * Use longer variable names. TODO: Refactor the unit tests. Change-Id: Idad65117dab565786697015ef07070e1c308d963