finished low-level foreach
- cleaned up
- made into library
- fixed bug
added support for Partitioner
reorganized project