added command-line parser in EP_Waveguide.py + minor changes