Added default to --file index.html when neither --file nor --url parameter given
now using reduce to get rid of one variable. changed line endings to unix-style