creation of README file, and basic and some error checking