don't allow spaces in key names

replace spaces with underscores if present in key names
add example output to README