Persist fix - fixes activation function and limited network persistence

Recreated pull request, now correctly located in its own branch