Now use 'plot' argument for as the export function title.
Other small bug fixes.