Added docstrings, removed default value of print_conifg_file function, chaged semantics of unpatch to remove last ip instead of erasing