Memory limit

Add a memory-limit option to make it possible to overwrite php.ini's value.