Updated README and added JavaDoc.