Modifying plot functions + clean comments + add function openRecentFile()