replace if else with a switch case in Home.java
add Comments to methods and classes and refactored code