New classes. Small bugs fixed. MessageBox added