Fixed typo with smooth.r; added title parameter to plotting