add javadoc to some classes
introduce labeled matrix