@mandli @ketch - make sure you understand what this file is doing before you merge this.  Ask if the documentation isn't clear.