fixed rpad issue, now using printf (@nevdullcode)
updated sample_head.sh to require atleast file argument
optparse now cleans up after self, no more polluting tmp
minor changes