Parameterized function worked
Axes formatted
Typos corrected