moved comments - added check for no entry

moved comments from end of each line to just above what they describe;
added statement to check if entry is blank and print a message