Added writing and som emore rework