add automatic file detection. and swapped out windows line-endings with
unix ones