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

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>
is '-r' option necessary? According to the `rm` manual, I don't think so.

[Linux man-page 'rm'](http://linux.die.net/man/1/rm):
>-r, -R, --recursive
remove directories and their contents recursively