Reformat code, optimize imports, add copyright notices (since we're online now...)