Main page redesign and code cleaning.