Added documentation in gen_map.c and updated README.md