Modified build script to support maven central upload
Minor fix to the examples