unify the coding style.
2. Add file headers. 3. Modify file name to match Java's. 4. Fix some issues.