Added the GUI for dematerializer and fixed some stuff that hunter missed.