fixes package.json issues, includes sourcemaps, and adds a clean step to the build