raise memlimit, fix messed up variable name, add gzip compression