Added comments, renamed functions
Rename badly named function fetch_le_key_and_len -> fetch_key_and_len