Added print_to_log(), can now print stuff in the log window