Added method to PackageService to format and write box.json and refactored init to use it