reorganized
added KsVars
streamlined initial Indices