Change methods and add documentation.

Split eliminate method in three new methods, add doc to parameters, delete unused code, add a method into Algorithm,py file.