Castlemaine Library ready to reopen after upgrades