criat: Improve function comments/coding style.

Also remove default parameter in Paint.