Added package caching and fixed 'main' in package.json.