Added an option to toggle line buffering.

This makes the program have a on and off switch for safety.