Applied code formatting and Apache license to source files.