Added branch task, updated javadocs.