Added some javadocs to describe interface functions.