refactor: add comments & tidy up codes /home.py