move comment blocks, generate docs, add package.json