Code formattings, added debug info option in Window