Initial implementation of classification algorithm. Updated documentation.