Added license header, and removed random debug code