fixed create_res function; updated readme