making changes to the main function and accomodating changes in the makefile and the README file