added doc-comments
fixed code to match latest pushy-node updates