Added "true" as third param to mkdir so that it will recursively create all the directories it needs to create if your destination consists of several non-existent directories. I also made a few spelling corrections and clarification in the opening paragraph of the page (about extending helpers).