             Q.reject new ApiError 'Connection reset. Retrying.'
         stream.pipe fs.createWriteStream file
 
+###*
+@name main -- Everything starts here!
+###
 main = ->
+  # Parse options first
   res = options.parse()
-  # In that case, res is used as process exit code.
+
+  # If we have a number, we should stop right away.
   return res if typeof res is 'number'
 
   {blogname, dest} = options

    options.dest = realDestination
    cacheFile = "#{options.dest}/.tumblrip"

    try
      if fs.statSync(cacheFile).isFile()
        readFile cacheFile

    log.info 'Blog unique photos:', posts.length, '\n'
    log.info 'Duplicates:', total-posts.length, '\n'

    # We remove 'nbNewPosts' as it is going to change and not relevant to store.
    delete blog.nbNewPosts

    # We store the 'database' as a plain old JSON, should/can be optimized a bit probably..
    outputData = JSON.stringify blog

    # Write "database" to outputdir/.tumblrip
