Updated the GUI tools to reflect newer code. Also tweaked the utils.plotForeground function to facilitate the GUI tools.