New function for getting file size and bug fix

Fixed a bug in returning wrong names for mounted images
Added encoding and now tries partitioning disks
-