added formatter file and cleaned up the code format