Updated npm package with subDoc functionality