   jsonfile.writeFile filename, obj, options, callback
 
 
-# Persists a project.
+# Persists a project and loads it.
+#
+# @param [Object] obj the object to persist or null to persist loaded project
+# @param [Function] callback the function to call back on
 #
 persistProject = (obj, callback) ->
   if obj then project = obj # Replace loaded project.
   persist PROJECT_PATH, project, callback
 
 
-# Persists a user.
+# Persists a user and loads it.
+#
+# @param [Object] obj the object to persist or null to persist loaded user
+# @param [Function] callback the function to call back on
 #
 persistUser = (obj, callback) ->
   if obj then user = obj # Replace loaded user.

    + "&id=#{id}"


# Checks whether or not a human-readable resolution name is valid.
#
# @param [Number] res the resolution code to check.
#
isValidResolution = (res) -> humanResolutions.indexOf(res) > -1


# 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


# Persists an object to a file as JSON.

      log.error "Couldn't get information about image with ID '#{id}'"


# Translates a human-readable resolution into an API resolution.
#
# @param [String] resolution the resolution to translate
