Added -a and -b flags and formating special characters