Finished loop unit test
Removed spaces
Added gitignore
Reverted tree to tree type from list tree.
Added loop check for equals comparison
Fixed typo.
Reverted if statement.