added comments and change some text boxes to labels