Generalize coil file loading
Refactor coil_module to remove derived type and make it dynamically
allocatable
Add deallocations