Added input file permission error
Remove unneccesary prototypes