fix path in makefile, and use 1-based indexing for memmap file