naming consistencies; cleanup; writing materials to json