Fixed a bug on handling the order of -s and -r option. Also, small fix to dot file is added.