Added -P switch
Converted CLI into Config and implemented config file