Fix #7 Implemented basic set variable functionality
Merged code for feature #7