Score handled again

Also, javadoc has been added to InvalidPositionException.