The software company has been cutting costs and adding artificial intelligence to its popular products.