Gets and dispalys all optins to console
Added isValidFunction