add name option to functions
Update to provide separate plotting method