Updated build script
Updated sync script
Improved template customization