related to pr #2, reformatted index definitions to all be arrays and allow 'n' instead of up to 2 keys per index