Fixing Rw function
Adding x and y labels and title to plotting functions