Modification to spinner to return main output and messages

Made modification to spinner library to once again return the output from main as well as the messages that pass through. Also added a small change to fix problem with handling empty messages.