Cleanup of plotting function, added output
Cleanup of input args, added log argument
Test code of text relocation, IT WORKS