renamed main file
basic read and write functionality