removed serial writing (was crashing device) and changed mmap file path to something more permanent