Updated JavaDocs, added more functions to dispatcher.java