changed api to key-value pairs in input
added dim field for grids
produce vector leadfield when orientation is not specified (i.e. dippar has 3 columns only)