Cleanup trailing whitespaces and add GPL license to remaining source files