Made program a dynamic webiste, and refactored code based on dan's comments