added getFileSize and compareFileSize functions