reset spotnaneous retrieval if a command was issued
add smem --history command

picked edits from b696574147bf3b04959601c3a6b699499908ac32 and 15531ae1f9a0b02713142d990a159765d5b1c035