Generalized overloading of plotting functions

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>
savecredentials, fixed error messages and overwrite of hidden file

Print on screen some feedback to user.

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>