Add copyright notices ; fix compilation problems with javadoc