Go FMT
Removed unneccessary add operation
Added write out feature