fixed error on empty files
added friendly and informative output to extract-partitions