Fix broken PWAKESTATUS varible and improve formatting