Added functions, objects and modified index, magic and style.