Formatting and Package Reference Fixes

Also added a build script.