Expose domify and improve error handling.