docs and syntax

altered the format of npm define