Correct PhyML input; normed stats; safe syscalls

Also bug fixes