Fixed #238. Fixed JavaDoc warnings in spec.