C++ code formatting
Java code formatting
Added missing licenses