1. Add .gitignore
1. Fix typo and some cleanups.
1. Add python/pdaemon-sample.py, a simple example of python-daemon.
1. Add getopt processing
2. Add batch/quiet mode.
3. Fix a float number handling bug in average life calculation.