Add missing licence headers
Make possible to export srdag to main
Make srdag print in main only