Add copyright notices, improve scaladoc