added npm.js example, line(), paragraph() and some changes