Renamed files, added functions read_file/write_file

Signed-off-by: Mohamed Thalib <hmthalib@gmail.com>