Minor tweak
Fixed append not interpreting second switch and generating two "?" (main function still missing)