added prompt for word and spacing for console output.