Added error logging to main application - not logging on zBox yet. Closes #37