Use uniform format for refnums in settles
Fix errors introduced by not testing
Merge pull request #3 from bcarreno/master

Fix errors + minor changes