fixed and simplified product index
tidy code
added sample json files
now with auto uuid generation for nil uuid imports

state-manager now imports all valid json files from samples directory