minor: changing loop to use enumerate
options: code to generate runtime options files
options: adding type and defaults