reformating
changing from echoing commands to fully put them in files