Both those codes relate to the ignition coil circuit, coil "B" or coil "2".
P0352 relates to the primary side of the coil, P2305 relates to the secondary side of the coil. You may have gotten a bad coil, or possibly the wiring leading to the coil pack is questionable. With the engine having fallen out, the wiring could have been damaged easily.
If all that checks out good and solid, it could be the computer.
Best of luck on that one.