removed resizing of labels - was necessary when doing subplots, but doesn't look right now
added new example output
updated variable name for clarity
updated to take mapping data as dict rather than file to avoid having to re-parse the file several times
updated script to use new extract function interfaces
improved documentation
split main() into two functions
udpated to return output file paths - this is convenient for functions that generate a lot of files as those paths can then be easily included in a summary html file for example