Support for editing todo item.

Added support to open a edit screen to modify todo item by clicking it.
Code review and cleanup.

1. Updated .gitignore.
2. Added comments.
3. Minor code changes like scope changes and constants.