added parseInput

added parseInput; a method* to parse input strings from wherever to
StackMembers

*starring YET ANOTHER SWITCH STATEMENT