Updated log function
Revised the lightpack api (node) code and cleaned it up