memory V5 - changes to pass tests

changes include:
removed extra semi colons
changed the comparison operator from ‘==‘ to’===‘

also added some comments to V4 for clarification