Adjusted readme for update API

Moved sample cli.js to a sample dir.
Refactored out fileMeta operations for better code reuse.