What is the version of the following sentence with correct punctuation?

By placing all of your notes in daily journal entries it lets you easily look up information based on dates rather than filenames
By placing all of your notes in daily journal entries, it lets you easily look up information based on dates rather than filenames.