Added read_bytes and repaired read_file