Increase filename length
Increase max iter per train episode
Added an optional "-r" option for remote agent