removed unnecessary code in firstscreen and added comments