Added the functions that were in txt and added some validations to the input of parameters