xPLLib with my modifications