Remove writing out temp files for debugging.
Fix formatting
Fix copy scripts

Change-Id: I4e02c00be8902b6335a51d4542e7bd4421ade1bc