Add rough stringify draft.
Refactor stringify implementation (resolves #2).