added some comments
added method to get the max value on doubt vector
modified somethings about files and another things