Fixed JavaDoc
Deprecated old API and documented usage