add some Javadocs and fix Licence.txt space