Minor updates.
Use boost's foreach.
Remove git ignore.