Updated API. Added JavaDoc.
Merge remote-tracking branch 'origin/master'