fixed another reference error, fixed documentation for chmod