fixed ENCODEING bug.
Changed comments tu fulfill apache 2.0 license.