Fixed lmeSmooth function and added more R scripts