Functional Classification Of Divergent Protein Sequences And Molecular Evolution Of Multi-Domain Proteins