Fixed write file to work w/ robot
Removed unneeded libs