Bug fix with rotation
Optimized data passing, changed memmap file structure