updated package.json
bug fixes due to regex issue, syntax cleanup, other assorted bugs