Market close: Investors’ mood improves as the sharemarket rises