Cleared API loading error.
Cleaned directives.
Added removal of loading modal if download fails.
Final additions to front end.