added print example, fixed plot2d typo