refactored wdparams to plot colours and also take input from command file