Fixed some errors

Added the functions is extended classes and is not branching from the file classifier, because it needed those, also changed the function groupby and added some comments at my functions