Updated build script with debug mode and more INFO statements or easier debugging in the future.