Fixed package.json so that a build is done upon install. Added additional prepublish checks.