Added license header to all main files