Now with a flag for the target file, defaulting to the file it's called from

Signed-off-by: Thomas Hodgson <thomas.hodgson@gmail.com>