Fixed transposing and added Hermitian conjugation