finished writing JavaDoc
cleaned up visitor patterns
fixed bug in getCloserNode
added Database recovery, as per Brian's suggestion