Deserialize function for parsing a file into an `Expansion` closes #11 closes #1