Added javadoc to watcher maxheap still needs final tests