Adjusted legends. Adjusted input arguments. Limited the comments of bash files.