Add maxBuffer option

Certain processes with heavy logging were exceeding the maxBuffer and causing the process to be killed. This provides an option to increase the maxBuffer when necessary.