updated abundance prediction code and plotting code