Changed line breaks to work in command line, cleaned up output a little and print results when successful.