Added constructor to set config with default parameters. Examples edited accordingly.