Added util functions for generating JSON from .names; plus huge regression example