added space in printed error message
improved debug output formatting