Fixed makefile. Improved main. Iterator still doesn't work.