Added "runprogram" action to optionparser and started defining functions for the action