Variable Scope and User Messages

Corrected variable scoping. Added user messages for buttons and
commands to ensure the user is informed on success or failure.
Error Checking

Added messageboxes when null input is detected.