Cleaned up codes for next packaging.

For issue #29 (for debian package), add header and footer for all source codes.