fixed unchanged variables and put them into module
fixed functions for selling
Merge pull request #7 from GarrethDottin/refactored-code

Refactored code