added ability to specify plot title