Added functionality.

Added memory_limit functionality, broke creating of the php.ini file into a separate function.