Change license from Apache v2 to MIT

Change license to MIT and update all files whit this license copyright.
Reformat all source code by standards.