Make code fixes. Rename cache.js to model.js. Implement archive as built-in module of model