Update comment.
Add grace period calculation.
Fix Makefile indents.
Adjust comments and function names.
Rename the file.