Formatting fixes and adds MessageBox API