removed unsed pointer var
renamed func for clarity
added memory_addr_to_frame_addr -function