Created Dialog class
Cleaned up extraneous imports and debug functions