Hanlon migration code cleanup and comments

1. Code cleaned by removing unwanted verbose instructions
2. Code commented
3. Object iteration isssue fixed