Update memory limit, add memory free statement and update module version