A bunch of fixes to avoid as much write ops we can to avoid and fixed memory leak on the robot