added comments throughout code, refactored code, and added favicon.