allows user to append custom string into file && refactors ctrlr's run method