-Added initialisation
-Added sorting
-Added PLI generation