Added a bunch of copyright notices

Also attempted to make sure passed emails end up in the same window.