added licence + headers