Added a mtw.refresh() function to call new lines when necessary
Fixes ldd customization