Now scans current working directory as default if no directory provided.
Added counting total lines overall (ignores trailing blank lines)