Added classes, redesigned some functions... All the world is green.