increased php execution time limit as well as moved 

Increased php execution time limit (for those of us with slower machines)
refactored repetitive foreach ($fields AS &$field) to separate function call --> $this->add_stream_fields($fields, $template)