bugfixing:
- map instead of flattop for rows
- reduce function applied on single row instead of all rows
- cleanup
- gitignore updated