A moral lesson from a story could also be considered the theme
I think its the first one the sentence looks fine with out a comma.
It was in tin Britain because that was where it paid to invent in the 17th and 18th century the growth of manufacturing commercial economy increased demand of literacy, numeracy and trade skills