Fix the issues in the code.
1. Add Apache header.
2. Reduce the line number <=100