fixing error and correcting issue about a.out output file