Added support for read streams and fixed package.json main definition.