removing some items from the todo list
changing loop-for-each to take var and list as separate arguments
documenting the loop structures included