Fixed some adding functions, adding changeFileIcon etc