Merge pull request #1 from iamll1/master

Add main() and refactoring
do things in main
try to fetch_data
use wrong value