Update index.js

Added errors to start and stop archive code, as it was returning the error instead of the archive instance by default, resulting in a null error being returned instead of an archive instance when the command was called.