Changed license comment
Add 'use strict'
Fixed semicolons
fixed typo in documentation
removed root as function parameter