adding unparse, fixing bug where multiple opt args were being skipped, adding test function