Inquest hears from soldier's commander