added save function and examplePanel output from save