add a plot example and small fixes.