use more generic readline() in k8.js
r50: K8_PATH not working
updated API documentation