Add customizable variable for temp file location.

Also flipped the default to 'inplace.
merge arnested/location branch