Added documentation and minor code change.

  * Removed duplicate method totalLength from Metainfo.