Fixes #3, adds some ordering to outputted REST options node