Add functionality for automatic ratios, correct paths and better replace...

Add functionality for automatic ratios, correct paths and better replacements