MULTILINE has to do with how '^' and '$' behave, DOTALL will make the '.' match newlines as well. This catches several failures that were previously missed.
Changes include: - Fix code review comments - Add comments - Rename variables and files