set_variable implemented

Implemented set_variable and several other changes such as the ability to generate summary output.