Utils

Some minor enhancements.

Made on top of PR #14 since it uses the `mergeJSON` function introduced there.