Fix code formatting
Refactor to remove node-put dependency