fixed rpad issue, now using printf (@nevdullcode)
updated sample_head.sh to require atleast file argument