 # Gets the code for a human-readable resolution name.
 #
 # @param [String] res the human-readable resolution name to get the code for
+#
 getResolutionCode = (res) -> humanResolutions.indexOf res
 
 
-getReader = () =>
-  readlineSettings =
-    input: process.stdin
-    output: process.stdout
-  readline.createInterface readlineSettings
-
-
+# Persists an object to a file as JSON.
+#
+# @param [Object] obj the object to persist
+# @param [String] filename the name of the file to persist to
+#
 persist = (obj, filename) ->
   options =
     spaces: 4

  true
     
    
init = () ->
  
  # Check we're not going to overwrite an existing project file.

  apiKey = readline.question 'What\'s your Pixabay API key? To find it you' \
    + ' can log in to the Pixabay website and visit: ' \
    + 'https://pixabay.com/api/docs/ '
  newUser.apiKey = apiKey
  
  # Persist user file.
  user = newUser
  persistUser()
  
  log.info "New file created at '#{userPath}' containing your API key. DON'T" \
    + " CHECK THIS FILE IN TO SOURCE CONTROL."
  
    
# Interpret commands.
