bug fixes and plotting improvements