1. Add a Makefile
2. Fix the typo: "deamon" ==> "daemon"
3. Change the ways to parse command-line-argument, using getopt() to make code more consise and readable, without affecting its functionality.

Signed-off-by: Siyuan Hua <jonnyhsy@foxmail.com>
Merge pull request #5 from jonnyhsy/master

1. Add a Makefile 2. Fix typos 3. change ways to parse CLI parameters