added checking value
landfill
tested writing to file
Merge pull request #12 from GarrethDottin/refactored-code

Refactored code