Added doxygen comments and editted find buddy method to use algorithm defined in docs.