Add copyright and magic comments.
Rename entry point method name
Add method comments