added comments and plotting