Completed digger thread and added javadoc