removed unnecessary fucntion
added file content pritning in main function