All codes are working.

* cleanup in codes

* some explanations and hints for some troubleshooting