Fixed some messages and plotting scripts.