updated main page, fixed typos
added javadoc, fixed typos