added some conditional logic string appending functions.
refactored to remove some of the if else statements from the string gen
function. move the stuff to a function. added test cases.
need to add the to param.
got the set command to work.
updated the readme to add the SET param.