Two logic flaws in previous commit
Add SMART_TARGET_SELF to the target generating for comments and write 'No action' for SMART_ACTION_NONE
Remove two items from the TODO.txt which were already finished
Fix an issue where searching would very often break when searching for an entry