adding comments

1. Use more final modifier
2. Consider more clearly about private/protected fields
3. close resource before exit
adding comments