Continuing development. Added message box and basic event handling.