If passed -w as the second argument, make the changes in the file

Signed-off-by: Jani Monoses <jani@ubuntu.com>
Many other option defaults added

Signed-off-by: Jani Monoses <jani@ubuntu.com>