Table Export

Added JSON output, refined list of output fields. Reworked names of
functions to reflect more generalism.