Changed some error messages to the new log system. Looks good so far, more changing to come.