use padding to prevent collapse
cast simplexmlelement to string before usign de value
Added auto-selection of downloaded extension