cleaned up some parts and added coninuous sources, proper output, errors for not having right type listed, flux