First step done implementing switch case and elif
New testcode. Bugfix in non interactive mode