Separate code into functions
Add makefile
Merge branch 'master' of github.com:mks65-dw/unnamed