Modified fgout to work with recent JSBSim builds. Added test_template